package com.oauth.error;

import org.apache.oltu.oauth2.common.error.OAuthError;

/**
 * Created by yangjianbo on 2016/10/9.
 */
public class OauthError extends OAuthError {

    //不存在客户端
    public static final ErrorModel errorModel_client_not_exited=new ErrorModel("OAUTH_0001","There is no client");

    //不可用的客户端
    public static final ErrorModel errorModel_client_not_useed=new ErrorModel("OAUTH_0002","The client is not available");

    //回调地址不能为空
    public static final ErrorModel errorModel_redicturi_not_empty=new ErrorModel("OAUTH_0003","Callback address cannot be empty");

    //回调地址不能为空
    public static final ErrorModel errorModel_redicturi_not_currect=new ErrorModel("OAUTH_0004","Callback address cannot be currect");

    //申请权限超出范围
    public static final ErrorModel errorModel_scope_out=new ErrorModel("OAUTH_0005","Scope of application");

    //客户端密钥不正确
    public static final ErrorModel errorModel_clientSecret_not_correct=new ErrorModel("OAUTH_0006","ClientSecret is not correct");

    //code不正确
    public static final ErrorModel errorModel_code_not_correct=new ErrorModel("OAUTH_0007","code is not correct");

    //code已经失效
    public static final ErrorModel errorModel_code_Invalid=new ErrorModel("OAUTH_0008","code is Invalid");

    //refresh_token非法的
    public static final ErrorModel errorModel_refrehToken_Illegal=new ErrorModel("OAUTH_0009","refresh_token is Illegal");

    //refresh_token已失效
    public static final ErrorModel errorModel_refrehToken_Invalid=new ErrorModel("OAUTH_0010","refresh_token is Invalid");

    //refresh_token已过期
    public static final ErrorModel errorModel_refrehToken_expired=new ErrorModel("OAUTH_0011","refresh_token is expired");

    //accessToken已失效
    public static final ErrorModel errorModel_accessToken_Invalid=new ErrorModel("OAUTH_0012","access_token is Invalid");

    //accessToken已过期
    public static final ErrorModel errorModel_accessToken_expired=new ErrorModel("OAUTH_0013","access_token is expired");

    //资源不可用
    public static final ErrorModel errorModel_resource_not_enable=new ErrorModel("OAUTH_0014","the resource is not enable");

}
